require 'fileutils'

lowpro_js = File.join(File.dirname(__FILE__), File.join('..', '..', '..', 'public', 'javascripts', 'lowpro.js'))
FileUtils.cp File.join(File.dirname(__FILE__), 'etc','lowpro.js'), lowpro_js unless File.exist?(lowpro_js)

flux_validator_js = File.join(File.dirname(__FILE__), File.join('..', '..', '..', 'public', 'javascripts', 'flux_validator.js'))
FileUtils.cp File.join(File.dirname(__FILE__), 'etc', 'flux_validator.js'), flux_validator_js

flux_validator_css = File.join(File.dirname(__FILE__), File.join('..', '..', '..', 'public', 'stylesheets', 'flux_validator.css'))
FileUtils.mv flux_validator_css, "#{flux_validator_css}.backup" if File.exist?(flux_validator_css)
FileUtils.cp File.join(File.dirname(__FILE__), 'etc', 'flux_validator.css'), flux_validator_css

puts <<-END_OF_MESSAGE

Installation Successful...
Use the Flux Validator responsibly.

END_OF_MESSAGE
